<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>暗色主题</title>
</head>
<body>
    
</body>
<script>
    var a = document.createElement('style');
    a.innerHTML = `html{background-color:#fff;filter: invert(1);}img{filter:invert(1)}`;
    document.head.appendChild(a)
</script>
</html>